package view;
import java.awt.BorderLayout;

import java.awt.Dimension;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JDesktopPane;
import javax.swing.JFrame;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.WindowConstants;

import controlador.Sistema;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class JInternalFrameAltaCliente extends javax.swing.JInternalFrame {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.jgoodies.looks.plastic.Plastic3DLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	private JButton btnAceptar;
	private JTextField jTextField1;
	private JLabel jLabel1;
	private JTextField txtContacto;
	private JLabel lblContacto;
	private JTextField txtDescuentos;
	private JLabel lblDescuentos;
	private JButton btnCancelar;
	private JTextField txtRazonSocial;
	private JTextField txtTelefono;
	private JTextField txtDomicilio;
	private JTextField txtCUIT;
	private JLabel lblTelefono;
	private JLabel lblDNI;
	private JLabel lblCUIT;
	private JLabel lblNombre;

	/**
	* Auto-generated main method to display this 
	* JInternalFrame inside a new JFrame.
	*/
		
	public JInternalFrameAltaCliente() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setPreferredSize(new Dimension(400, 300));
			this.setBounds(0, 0, 400, 300);
			setVisible(true);
			this.setTitle("Alta Cliente");
			getContentPane().setLayout(null);
			this.setSize(400, 400);
			{
				btnAceptar = new JButton();
				getContentPane().add(btnAceptar, "Center");
				btnAceptar.setText("Aceptar");
				btnAceptar.setBounds(63, 288, 98, 26);
				btnAceptar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
					//	Sistema.getInstancia().altaCliente(txtCodigo.getText(), txtCondVta.getText(), txtCUIT.getText(), txtDescuentos.getText(), txtDomicilio.getText(), txtRazonSocial.getText(), txtTelefono.getText());
					}
				});
			}
			{
				btnCancelar = new JButton();
				getContentPane().add(btnCancelar);
				btnCancelar.setText("Cancelar");
				btnCancelar.setBounds(199, 288, 107, 26);
				btnCancelar.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent evt) {
						dispose();
					}
				});
			}
			{
				lblNombre = new JLabel();
				getContentPane().add(lblNombre);
				lblNombre.setText("Razon social: ");
				lblNombre.setBounds(58, 62, 73, 14);
			}
			{
				lblCUIT = new JLabel();
				getContentPane().add(lblCUIT);
				lblCUIT.setText("CUIT: ");
				lblCUIT.setBounds(58, 33, 73, 14);
			}
			{
				lblDNI = new JLabel();
				getContentPane().add(lblDNI);
				lblDNI.setText("Domicilio: ");
				lblDNI.setBounds(58, 119, 73, 14);
			}
			{
				lblTelefono = new JLabel();
				getContentPane().add(lblTelefono);
				lblTelefono.setText("Telefono: ");
				lblTelefono.setBounds(58, 152, 73, 14);
			}
			{
				txtRazonSocial = new JTextField();
				getContentPane().add(txtRazonSocial);
				txtRazonSocial.setBounds(178, 59, 166, 21);
			}
			{
				txtCUIT = new JTextField();
				getContentPane().add(txtCUIT);
				txtCUIT.setBounds(178, 30, 166, 21);
			}
			{
				txtDomicilio = new JTextField();
				getContentPane().add(txtDomicilio);
				txtDomicilio.setBounds(178, 116, 166, 21);
			}
			{
				txtTelefono = new JTextField();
				getContentPane().add(txtTelefono);
				txtTelefono.setBounds(178, 149, 166, 21);
			}
			{
				lblDescuentos = new JLabel();
				getContentPane().add(lblDescuentos);
				lblDescuentos.setText("Descuentos: ");
				lblDescuentos.setBounds(58, 221, 63, 14);
			}
			{
				txtDescuentos = new JTextField();
				getContentPane().add(txtDescuentos);
				txtDescuentos.setBounds(178, 218, 166, 21);
			}
			{
				lblContacto = new JLabel();
				getContentPane().add(lblContacto);
				lblContacto.setText("Contacto:");
				lblContacto.setBounds(58, 89, 73, 14);
			}
			{
				txtContacto = new JTextField();
				getContentPane().add(txtContacto);
				txtContacto.setBounds(178, 86, 166, 21);
			}
			{
				jLabel1 = new JLabel();
				getContentPane().add(jLabel1);
				jLabel1.setText("Condiciones Venta: ");
				jLabel1.setBounds(58, 185, 113, 14);
			}
			{
				jTextField1 = new JTextField();
				getContentPane().add(jTextField1);
				jTextField1.setBounds(178, 182, 166, 21);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
